/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ControladoresUI;

import Entidades.Usuario;
import ManagersUI.AulasManager;
import ManagersUI.ReportesManager;
import Reportes.GeneradordeReportes;
import javafx.event.*;
import javafx.fxml.FXML;
import javafx.scene.layout.HBox;
/**
 * FXML Controller class
 *
 * @author JEscalante
 */
public class ReportesController{

    /**
     * Initializes the controller class.
     */
    
    ReportesManager reportesManager;
    @FXML private HBox pnlPrincipal;
    
    public void initialize() {}
  
    public void initManager(final ReportesManager reportesManager) {
        this.reportesManager = reportesManager;
        this.reportesManager.pnlPrincipal = this.pnlPrincipal;
    }
    @FXML
    private void abrirPnlRptHorarioGeneral(ActionEvent event){
        this.reportesManager.showPnlReportesGeneral();
    }
    @FXML
    private void abrirPnlRptHorarioAula(ActionEvent event){
        GeneradordeReportes generador = new GeneradordeReportes();
        generador.guardarAbrirReportesAulas("ReportedeAulas.jasper");
    }
    @FXML
    private void abrirPnlRptHorarioCatedratico(ActionEvent event){
        this.reportesManager.showPnlReportesCatedratico();
    }
}
